Using material types

Material types define the property type of a material. By adjusting material property values defined by a material type, you set the appearance of a material. Each material type has a vertex shader and a fragment shader, which set the type of properties you can use in a material.

A set of material types come with Kanzi Studio. You can either add material types as you need them, or create your project using a template that already contains a set of material types.

Adding a material type to your project

To add a material type to your project:

  1. In the Library right-click Materials and Textures and select Load Material Type From Disk.
    Select Material Type window opens.
  2. Go to <KanziInstallation>/Studio/Asset Library/MaterialTypes and select the directory that contains material types that best fit the needs of your project:
  3. Select the material type that best fit the needs of your project and click Open.
    Kanzi Studio adds the material type and creates a material using that material type. You can create additional materials from the same material type. See Using materials.

Reusing material types

When you create a material type in your Kanzi Studio project, you can reuse the material type in another Kanzi Studio project.

To reuse material types:

  1. In the Library > Library tab > Materials and Textures > MaterialTypes right-click the material type you want to save to disk, and select Save Material Type to Disk.
    Save Material Type window opens.
  2. Select the name and location where you want to save the material type and click Save.

See also

Using materials

Material types and materials